package priv.dajie.tzzq.bot.model;

public enum TradeState {
    SUCCESS,WAIT,FAIL,TAKE_BACK,OTHER;

    public TradeState c5TradeState(String stateStr){
        switch (stateStr){
            case "交易成功":
                return SUCCESS;
            case "交易取消":
                return FAIL;
            case "等待收货":
                return TAKE_BACK;
            case "等待买家收货":
                return WAIT;
            default:
                return OTHER;
        }
    }
}
